import java.util.Scanner;

public class Ex2_2{
	public static void main(String[] args){
		System.out.print("Enter the radius and length of a cylinder: ");
		Scanner input = new Scanner(System.in);
		double radius = input.nextDouble();
		double length = input.nextDouble();
		final double pi = 3.14159;
		double area = radius * radius * pi;
		double volume = area * length;
		System.out.println("The area is " + area);
		System.out.println("The volume is " + volume);
	}
}
